home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Python 1.3 / source code / Dos / README < prev    next >
Encoding:
Text File  |  1995-12-17  |  3.1 KB  |  64 lines  |  [TEXT/R*ch]

  1. Here's a mail from Amrit on porting Python 1.0.2 to DOS.  Also see the
  2. file BUILD for more concrete info.
  3.  
  4. Subject: Python 1.0.2 on DOS
  5. From: amrit@xvt.com (Consultant)
  6. To: guido@cwi.nl
  7. Date: Fri, 13 May 1994 12:25:55 -0600 (MDT)
  8.  
  9. I have ported Python 1.0.2 to DOS using GCC 2.5.7 running under DJ's
  10. extender version 1.11.  The 1.11 extender is much better; It runs better
  11. under DMPI (Windows), so I no longer get "buggy read.s module."
  12.  
  13. I took more time doing a careful port of Python by writing custom
  14. configuration files for DJGPP and QuickWin.  Thus the time functions now
  15. work much better.  (In particular, it now uses DJGPP's gettimeofday()
  16. function, whereas before, without config.h, it was just using the
  17. ANSI time() function.)
  18.  
  19. Great news!  I got keyboard interrupts working for the DOS extended version
  20. of the Python interpreter; pressing Control-Break on the DJGPP version will
  21. raise the KeyboardInterrupt exception.  However Control-C will still terminate
  22. the Python process, and both Control-Break and Control-C will terminate the
  23. QuickWin Python program :-(  For the DOS documentation, I wonder if you
  24. should emphasize that control-break is the interrupt key of choice.
  25.  
  26. The regular expression globbing feature of Python was broken on DOS.  This
  27. was due to a combination of a bug in dospath.py and dosmodule.c.  I am
  28. sending you the fixes to both.  I made several changes to dosmodule.c:
  29.  
  30.     dosmodule.c now works with both the Borland findfirst/findnext directory
  31.     search functions and the Microsoft _dos_findfirst/_dosfindnext directory
  32.     functions.  DJGPP uses the Borland interface, so it makes sense to
  33.     have the code work for both methods.  (Also, then it can work for Borland)
  34.     I noticed that an earlier version of dosmodule.c supported both interfaces,
  35.     so I wonder why you took that support out.
  36.  
  37.     Fixed a bug where listdir('') returned the listing of the root directory
  38.     instead of the current directory.
  39.  
  40.     I changed the file attributes for findfirst() so that system files are
  41.     not included in the directory search.  Users should not be messing with
  42.     these. (IMHO)
  43.  
  44.     I added system() for QuickWin back to dosmodule.c.  You told me you moved
  45.     it to a separate file, but I couldn't find it in the distribution.  :-(
  46.  
  47.     dospath.py was broken where normalize() would convert regular expression
  48.     metacharacters into '_'.
  49.  
  50. I am sending you the configuration files I wrote for the extended dos version
  51. (config.dj) and the QuickWin version (config.qw).  As well as the config.h
  52. that I use, which merely includes either config.dj or config.qw as
  53. appropriate.  Also, you will find the new intrcheck.c module and the new dos
  54. modules, and some diffs.
  55.  
  56. Since the DOS globbing is so badly broken, it might be worthwhile to release
  57. a patch with just the source for dosmodule.c and the new dospath.py (or
  58. however you choose to fix glob()).
  59.  
  60. Also, if you want me to submit another gcc build of Python, let me know;
  61. I will be happy do do that.  I lost the readme that I wrote that gave the
  62. installation instructions, so if you cand send the one I wrote previously
  63. (If you still have it.) that will save me from having to create another one.
  64.